import { consts } from "../pkg-00-const";
import { pickup, writeTemplate } from "./tool/scanutil";
const fileMapping = /index\.tsx?/;
const pickRule = ["export", "class", "?"];
export const scanner = {
  scan() {
    const pickups = pickup(consts.behaviorFolderName, fileMapping, pickRule);
    writeTemplate(`template_${injectModule}.ts`, pickups, `virtual_${injectModule}.ts`);
    const typePus = pickups.map(p => ({ ...p, folderNameLowerCase: `${p.folderName[0].toLowerCase()}${p.folderName.substring(1)}` }));
    writeTemplate(`template_${typemodule}.ts`, typePus, `virtual_${typemodule}.ts`);
  }
};
const injectModule = "injection01behaviorIOC";
const typemodule = "injection01behaviorTD";
